package com.flyee.utils.textload
{
	import com.flyee.utils.textload.control.TextLoaderManager;
	import com.flyee.utils.textload.model.TextLoaderModel;
	
	public class TextLoader
	{
		private var loader:TextLoaderModel = null;
		public function TextLoader(url:String,returnFun:Function,progressFun:Function = null,ioErrorFun:Function = null)
		{
			loader = new TextLoaderModel(url,returnFun,progressFun,ioErrorFun);
		}
		public function load():void
		{
			TextLoaderManager.getInstance().regist(loader);
		}
		
	}
}